package com.demo9;

public class TeacherDemo {
    public static void main(String[] args) {
        Teacher teacher = new Teacher();

        teacher.setName("华罗庚");
        teacher.setAge(66);

        System.out.println(teacher);

        Teacher teacher1 = new Teacher();

        teacher1.setAge(66);
        teacher1.setName("华罗庚");

        System.out.println(teacher.equals(teacher1));
    }
}
